Skip to content

Fix Remote ID Basic ID header: byte 1 was declaring ID type None, UA type Aeroplane - #12

Open
Mattbusel wants to merge 1 commit into
ruvnet:mainfrom
tensorust-ai:deps/remoteid-basic-id
Open

Mattbusel wants to merge 1 commit into
ruvnet:mainfrom
tensorust-ai:deps/remoteid-basic-id

Conversation

@Mattbusel

Copy link
Copy Markdown

encode_basic_id wrote buf[1] = 0x01 as "Serial Number", but byte 1 is (IDType << 4) | UAType. So every broadcast said ID type None, UA type Aeroplane, and buf[0] = 0x00 dropped the protocol version (2 for F3411-22a).

This change encodes the Basic ID with the remoteid crate (no_std, default features off). Byte 0 is now 0x02 and byte 1 is 0x12, so the broadcast declares a serial number from a multirotor. The test now checks both bytes and decodes the message back.

Dependency added: remoteid = "0.3.2". It also encodes Location/Vector and message packs, ready for when the NED to WGS84 transform lands.

I'm Matthew Busel and I maintain remoteid.

Byte 0 now carries protocol version 2 and byte 1 packs ID type and UA type
as (IDType<<4)|UAType, so the broadcast declares a serial number from a
multirotor instead of ID type None, UA type Aeroplane.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant